<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
<html>
    <head>
        <title>Haberdashing</title>
        <%= javascript_include_tag "protoaculous1.6.packed.js" %>
        <%= javascript_include_tag "control.modal.js" %>
        <%= javascript_include_tag "instant.js" %>
        <%= javascript_include_tag "validation.js" %>
        <%= stylesheet_link_tag "grids.css" %>        
        <%= stylesheet_link_tag "default.css" %>
        <link rel="alternate" type="application/atom+xml" title="Atom 0.3" href="http://haberdashing.com/posts.atom" />
    </head>
    <body>
        <div id="content">
            <div id="current_post">
                <div id="header">
                    <a href="/">Home</a> | <a href="/posts">Dispatches/Daily Wardrobe</a> | <a href="/stores">Stores</a> | <a href="/products">My Closet</a>
                    | <% if logged_in? %>
                        <%= link_to "Log Out", "/account/logout" %>
                        <br /><br />
                        <%= link_to "New Post", "/posts/new" %> | <%= link_to "New Clothes", "/products/new" %> | <%= link_to "New Store", "/stores/new" %>
                    <% else %>
                        <%= link_to "Log In/Sign Up", "/account/login" %>
                    <% end %>
                </div>
                <%= yield %>
                <div id="footer">
                    <div class="left">
                        &copy;2008 Philip Bjerknes | <a href="#">About</a> | <a href="#">Links</a> | <a href="#">Press</a>
                    </div>
                    <div class="right">
                        <a href="/posts.atom"><%= image_tag "/images/feed-icon-14x14.png", :style => "border: none;" %></a>
                    </div>
                    <br /><br />
                </div>
            </div>
            <div class="clear"></div>
        </div>
        <script type="text/javascript">
            $$('.modal').each(function(link) {
                new Control.Modal(link, {
            		fade: true
            	});
            });
        </script>
    </body>
</html>
